<?
class indexController extends iMVC_Controller{


    public function index(){
        
            session_start(); 
            $info=new infoModel();
            $slider=new sliderModel();
            $rs=$info->fetchLimit(0,18,'info_id','desc');
            $icoRs=$info->fetchLimit(0,18,'info_id','desc');
            $sRs=$slider->fetchAll();
            $this->assign("rs",$rs);
            $this->assign("icoRs",$icoRs);
            $this->assign("slider",$sRs);
            $this->display("index.tpl");



    }
    //重写父类的before函数,在controller执行前可做验证
    protected function before(){
    
    
    }

}
